package com.woniuxy.dudugua.util.view;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;

import java.io.Serializable;
@Data
@Document(indexName = "emall",type = "product")
@NoArgsConstructor
@AllArgsConstructor
public class ProductView implements Serializable {
    @Id
    private  int  id;
    private  String  productName;
    private  String  storeName;
    private  int storeId;
    private  double   price;
    private  String  url;
    private  int sales;
}
